<template>
  <div id="List" style="background-color: cadetblue">
    <div class="textarea">
      <InputAdd/>
    </div>
  </div>
</template>

<script>
import InputAdd from "./InputAdd";
export default {
  name: "List",
  components: {
    InputAdd
  },
  data() {
    return {
      id: 0,
      placeholder: "卡"+this.id
    }
  },
  methods:{
    addListItem(){
      this.$parent.addListItem()
    }
  }
}
</script>
<style scoped>
#List{
  width: 30%;
  height: 200px;
}
.controller{
  float: right;
}
.textarea{
  height: 80%;
  width: 90%;
  margin: auto;
  display: flex;
}
textarea{
  margin-top: 5%;
  height: 90%;
  width: 100%;
}
</style>